import{d as w,p as _,aQ as $,b as c,o as f,a as n,e as V,t as r,u as t,F as g,f as l,w as d,s}from"./DrFvzlh8agutd.js";import{M as C}from"./WInZ5KVARz5uC.js";import{_ as h}from"./7ORAuVzy85i4h.js";import{_ as T}from"./CumuWVCo1E6jjF.js";import{_ as m}from"./JLTbM6jQPQMM7.js";import"./MpnPZlTSagutd.js";import"./DZFz6IIX1esOcA.js";import"./sf48gIWk3aD96J.js";const F=w({__name:"app-settings-workspace",setup(E){const k=_("page-settings"),a=$();async function u(){const e=a?.value.title??"";k("change title",e,s.workspace?.title,s.workspace?.storage),s.workspace&&(s.workspace.title=e,s.workspaces[s.workspace.id].title=e,await s.workspace?.storage.setMeta(C,e))}return(e,o)=>(f(),c(g,null,[n("h3",null,r(e.$t("settings.workspace.title")),1),t(a)?(f(),c(g,{key:0},[l(t(m),{title:e.$t("settings.workspace.labelTitle")},{default:d(({id:i})=>[l(t(h),{id:i,modelValue:t(a).title,"onUpdate:modelValue":o[0]||(o[0]=p=>t(a).title=p),placeholder:e.$t("unnamed"),class:"full",onChange:u},null,8,["id","modelValue","placeholder"]),n("p",null,r(e.$t("settings.workspace.descTitle")),1)]),_:1},8,["title"]),l(t(m),{title:e.$t("settings.workspace.labelDescription")},{default:d(({id:i})=>[l(t(T),{id:i,modelValue:t(a).notes,"onUpdate:modelValue":o[1]||(o[1]=p=>t(a).notes=p),class:"full",onChange:u},null,8,["id","modelValue"])]),_:1},8,["title"]),l(t(m),{title:e.$t("settings.workspace.id")},{default:d(({id:i})=>[n("p",null,r(e.$t("settings.workspace.descId")),1),n("pre",null,r(t(s).workspace?.id),1)]),_:1},8,["title"])],64)):V("",!0)],64))}});export{F as default};